#ifndef INF_FPM383_H
#define INF_FPM383_H
#include "Com_Debug.h"
#include "driver/uart.h"
#include "string.h"
#include "driver/gpio.h"
#include "Inf_WTN6.h"
#include "Inf_BDR6120.h"
#include "esp_task.h"
#define LED_RED_FLICKER Inf_FPM383_LedControl(2, 0x04, 0x04, 0);
#define LED_GREEN_FLICKER Inf_FPM383_LedControl(2, 0x02, 0x02, 0);
#define LED_BLUE_FLICKER Inf_FPM383_LedControl(2, 0x01, 0x01, 0);

#define LED_RED_ON Inf_FPM383_LedControl(3, 0x04, 0x04, 0);
#define LED_GREEN_ON Inf_FPM383_LedControl(3, 0x02, 0x02, 0);
#define LED_BLUE_ON Inf_FPM383_LedControl(3, 0x01, 0x01, 0);

#define LED_COLOR_OFF Inf_FPM383_LedControl(4, 0x07, 0x07, 0);

void Inf_FPM383_Init(void);

esp_err_t Inf_FPM383_ReceiveData(uint16_t len, uint32_t timeout);

void Inf_FPM383_ReadId(void);

void Inf_FPM383_PrintReceiveData(char *pre, uint16_t len);

void Inf_FPM383_Sleep(void);

void Inf_FPM383_CheckSum(uint8_t *cmd, uint16_t len);

void Inf_FPM383_AutoEnroll(void);

void Inf_FPM383_AoutoVerify(void);

void Inf_FPM383_DelFinger(void);

void Inf_FPM383_LedControl(uint8_t fun, uint8_t startColor, uint8_t endColor, uint8_t cycle);

#endif // INF_FPM383_H
